package com.goushu.service;

import com.goushu.pojo.AddComment;
import com.goushu.pojo.Customer;
import com.goushu.pojo.OrderQuery;

import java.util.List;
import java.util.Map;

public interface CustomerService {
    Customer findByUserName(String username);
    void customerRegister(Customer customer);

    void updatePwd(String newPwd);

    void updateAvatar(String avatarUrl);

    void update(Customer customer);

    void order(Map<String, String> data, List<Map<String, Object>> book);

    List<OrderQuery> listOrder();

    void addComment(AddComment addComment);

    void modifyOrder(Integer oid);
}
